package com.platform.modular.feign.order;

import com.platform.common.model.Result;
import com.platform.modular.model.order.ActivityOrderDetail;
import com.platform.modular.model.order.ActivityOrderListDTO;
import com.platform.modular.model.order.SignUpActivityDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;


/**
 * @author yifei.han
 * @version 1.0
 * @className ActivityOrderFeignService
 * @description
 * @date 2022/3/18
 */
@FeignClient(value = "sk-platform-order", contextId = "activityorder")
public interface ActivityOrderFeignService {

    @RequestMapping(value = "/activityorder/signUpActivity")
    Result<Map<String, Object>> signUpActivity(SignUpActivityDTO signUpActivityDTO);

    @RequestMapping(value = "/queryActivityOrderList")
    List<ActivityOrderDetail> queryActivityOrderList(ActivityOrderListDTO activityOrderListDTO);

    @RequestMapping(value = "/activityorder/obtainActivityOrderDetail")
    ActivityOrderDetail obtainActivityOrderDetail(Long activityOrderId);

    @RequestMapping(value = "/activityorder/cancelActivityOrder")
    Result cancelActivityOrder(Long activityOrderId);

}
